function deactivateProgressIndicators()
{
  if (self._pollManager)
  {
    if (document.getElementById('progresoStatus').value=='noTrabajando')
    {
      _pollManager.deactivateAll();
    }
  }
}

function reactivateProgressIndicators()
{
  if (self._pollManager)
  {
    document.getElementById('panelBox').style.display='';
    document.getElementById('progresoStatus').value='trabajando';
    _pollManager.reactivateAll();
  }
}


Ext.onReady(function(){
/*
    Ext.get('ImportacionComisiones_commandButtonSiguiente').on('click', function(){
        Ext.MessageBox.show({
           title: 'Please wait...',
           msg: 'Initializing...',
           width:240,
           progress:true,
           closable:false,
           animEl: 'ImportacionComisiones_commandButtonSiguiente'
       });

       // this hideous block creates the bogus progress
       var f = function(v){
            return function(){
                if(v == 11){
                    Ext.MessageBox.hide();
                }else{
                    Ext.MessageBox.updateProgress(v/10, 'Loading item ' + v + ' of 10...');
                }
           };
       };
       for(var i = 1; i < 12; i++){
           setTimeout(f(i), i*1000);
       }
    });
*/    
});
